#ifndef __DRV_IIC_H__
#define __DRV_IIC_H__
#include "stm32f4xx.h"
#include "drv_systick.h"


void drv_iic_init(void);
void drv_iic_in(void);
void drv_iic_out(void);
void drv_iic_start(void);
void drv_iic_stop(void);
void drv_iic_sendACK(void);
void drv_iic_sendNoACK(void);
uint8_t drv_iic_waitACK(void);
void drv_iic_senddata(uint8_t data);
uint8_t drv_iic_receivedata(uint8_t flag_ack);


#endif

